import Vue from 'vue'
import Vuex from 'vuex'

import user from './module/user'
import book from './module/book'
import activities from './module/activities'
import movie from './module/movie'
import group from './module/group'
import search from './module/search'

import axios from 'axios'

Vue.use(Vuex)

var store = new Vuex.Store({

    getters: {
        $ax: function(){
            return axios;
        }
    },

    modules: {
        user,
        book,
        activities,
        movie,
        group,
        search

    }
})

export default store;